package com.tianji.learning.mapper;

import com.tianji.learning.domain.entity.PointsBoard;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tianji.learning.domain.vo.PointsBoardItemVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 学霸天梯榜 Mapper 接口
 * </p>
 *
 * @author author
 */
public interface PointsBoardMapper extends BaseMapper<PointsBoard> {

    void createTable(@Param("tableName") String tableName);

    void batchInsert(@Param("tableName") String tableName, @Param("list") List<PointsBoardItemVO> pointsBoardItemVOS);

    PointsBoardItemVO queryByUserId(@Param("tableName")String tableName,@Param("userId") Long userId);

    List<PointsBoardItemVO> selectPageData(@Param("tableName")String tableName,
                                           @Param("startIndex")int startIndex,
                                           @Param("pageSize")Integer pageSize);
}
